package data;

import java.io.File;
import java.io.IOException;
import java.util.Vector;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

public class TraceMaps extends Vector<TraceMap>{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2189965564758560251L;

	public TraceMaps (String filename) throws ParserConfigurationException, SAXException, IOException{
		super();
		SAXParserFactory factory = SAXParserFactory.newInstance(); 
		SAXParser saxParser = factory.newSAXParser(); 
		DefaultHandler handler = new TraceMapHandler(this); 
		saxParser.parse( new File(filename), handler );
	}

	public TraceMaps() {
		super();
		// TODO Auto-generated constructor stub
	}

}
